package com.spring.service.impl;

import com.spring.dao.UserDao;
import com.spring.dao.impl.UserDaoImpl;
import com.spring.service.UserService;

//@Bean
public class UserServiceImpl implements UserService {
    //    @Di
    private UserDao userDao = new UserDaoImpl();


    //    private UserDao userDao = A
//    private UserDao userDao2 = new UserDaoImpl();
    @Override
    public void print() {
        userDao.print();
        System.out.println("执行到了userDao");
    }
}
